 
#include <string.h>
#include <math.h>
#include "system.h"
#include "f1c100s_de.h"
#include "f1c100s_timer.h"
#include "f1c100s_intc.h"
#include "f1c100s_gpio.h"
#include "f1c100s_pwm.h"
#include "f1c100s_uart.h"
#include "arm32.h"
#include "time0.h"
#include "disp.h"
#include "lvgl.h"
#include "lv_port_disp.h"
#include "lv_port_indev.h"
#include "lvgl_example.h"

int main(void)
{
    system_init();            // Initialize clocks, mmu, cache, uart, ...
    arm32_interrupt_enable(); // Enable interrupts
    timer0_init();
    printf("\r\napp [display] run. compiled_time %s %s\r\n", __DATE__, __TIME__);
    disp_rgb_init();
    disp_clear(0xff00ff00);

    lv_init();
    lv_port_disp_init();
    lv_port_indev_init();
    lv_example_button();

    while (1)
    {
        lv_tick_inc(5);
        lv_task_handler();
        delay(5);
    }
}
